Skip to content

feat: add short aliases for config keys - #8

Merged
vavasilva merged 1 commit into
mainfrom
feat/config-aliases
Jan 5, 2026
Merged

feat: add short aliases for config keys#8
vavasilva merged 1 commit into
mainfrom
feat/config-aliases

Conversation

@vavasilva

Copy link
Copy Markdown
Owner

Summary

Add short aliases for commonly used config keys to make CLI configuration faster.

Aliases

Alias Full Key
lang default_language
scope default_scope
type default_type
temp temperature
url ollama_url

Usage

# Before (verbose)
git-commit-ai config --set default_language=pt

# After (short)
git-commit-ai config --set lang=pt

Changes

  • Added CONFIG_ALIASES mapping in config.ts
  • Updated updateConfig to resolve aliases before validation
  • Updated --list-keys to show aliases
  • Updated README with alias examples

Example Output

$ git-commit-ai config --set lang=pt
✓ Config updated: lang (default_language) = "pt"

$ git-commit-ai config --list-keys
Valid config keys:
  backend
  model
  ollama_url (alias: url)
  openai_base_url
  temperature (alias: temp)
  default_scope (alias: scope)
  default_type (alias: type)
  default_language (alias: lang)

Short aliases:
  lang → default_language
  scope → default_scope
  type → default_type
  url → ollama_url
  temp → temperature

🤖 Generated with Claude Code

@vavasilva
vavasilva merged commit 5e37b83 into main Jan 5, 2026
3 checks passed
@vavasilva
vavasilva deleted the feat/config-aliases branch January 5, 2026 17:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant